package com.nintendo.service;

import com.nintendo.pojo.ChatMessage;
import com.nintendo.pojo.netty.ChatMsg;

import java.util.List;

public interface ChatMessageService {
    void saveMsg(ChatMsg chatMsg);
    List<ChatMessage> findChatMessageListByPage(Integer pageNum, Integer pageSize, String myId, String friendId);

    List<ChatMessage> findChatMessageListAll(String myId, String friendId);

    Integer incrUserMessage(String myId, String friendId);

    void clearMyUnReadCounts(String myId, String friendId);
}
